﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Isha.Entities;
using Isha.Services.Infrastructure;

namespace Isha.Services
{
    public interface ISecurityService : IServiceBase
    {
        IEnumerable<User> GetUsers();
        User GetUser(string userName);
        void CreateUser(User user);
        void DeleteUser(string userName);

        IEnumerable<Role> Roles();
        Role GetRole(string roleName);
        void CreateRole(Role role);
        void DeleteRole(string roleName);
       
        void AssignRole(string userName, List<string> roleNames);
    }
}
